print all possible permutations of a string